﻿@{
    Ajax.Dna().Widget()
        .Content(@<text>
    @{        var name = item.GenerateFieldID("iframe");    }
    <iframe id="@name" 
    name="@name" 
    frameborder="0" 
    width="100%" 
    src="@Url.Action("_WidgetBox", "Widget", new { Area = "", wid = item.Model.ID })">
    </iframe>
    </text>)
.Preview(@<text>
    @{        var name = item.GenerateFieldID("iframe");    }
    <iframe id="@name" 
    name="@name" 
    frameborder="0" 
    width="100%" 
    src="@Url.Action("_PreviewBox", "Widget", new { Area = "", wid = Request.QueryString["wid"] })">
    </iframe>
    </text>)
        .Render();
}
